package com.neuedu.jdbc.po;

/***
 * 项目名称:  MyJDBC 
 * 包：  com.neuedu.jdbc.po 
 * date:   2025/11/12   9:55  
 * 描述:  
 *  @author : 张金山
 *  作者博客:   https://blog.fulfill.com.cn
 */
public class Account {

    private  Long id;
    private String name;
    private Double amount;

    public Account() {
    }

    public Account(Long id, String name, Double amount) {
        this.id = id;
        this.name = name;
        this.amount = amount;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }


    /**
     * 为了测试打印对象属性的
     * @return
     */

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", amount=" + amount +
                '}';
    }
}
